<template>
  <div class="wrecord">
    <div class="header-warpper" @click="$router.back(-1)">
      <img src="../../assets/l_jt.png" alt>
      <span>问答记录</span>
    </div>

    <ul>
      <li class="list-li" v-for="(item,index) in list" :key="index">
        <div class="fle-li fle-li1">
          <p class="q">Q</p>
          <div>
            <p class="centent">{{item.content}}</p>
            <p class="time">{{item.create_time}}</p>
          </div>
        </div>
        <div class="fle-li">
          <p class="q a" v-if="item.reply">A</p>
          <div v-if="item.reply">
            <p class="centent centent1">{{item.reply}}</p>
            <p class="time">{{item.replytime}}</p>
          </div>
        </div>
      </li>
    </ul>

    <p class="msgend">已经到底了</p>
  </div>
</template>
<script>
export default {
  data() {
    return {
      list: []
    };
  },
  created() {
    this.$axios
      .post("/index/usercenter/kfwd", {
        page: 1,
        limit: 10
      })
      .then(res => {
        if (res.data.code == 0) {
          this.list = res.data.info;
        } else {
          this.$createToast({ txt: res.data.msg, type: "txt" }).show();
        }
      });
  }
};
</script>
<style lang="less" scoped>
@import url("../less/wrecord");
</style>

